<?php
/*
 +----------------------------------------------------------------------
 + Title        : WechatApi 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2019/8/1 14:37
 + Last-time    : 2019/8/1 14:37+ 86187
 + Desc         : WechatApi
 +----------------------------------------------------------------------
*/


namespace app\common\validate;


use think\Validate;

class WechatApi extends Validate
{
    protected $rule = [
        'type' =>'require|in:jsapi,wx_card',
        'url'  => 'require|url',
        'touser' => 'require',
        'template_id' =>'require',
        'data' => 'require'
    ];

    protected $scene = [
        'getTicket'=>['type'],
        'getJsApi'=>['url'],
        'sendTempMessage' => ['touser' ,'template_id' ,'data']
    ];
}
